﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%>
<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]}{sdcms[seotitle]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>var webroot="{webroot}";</script>
<script src="{webroot}theme/default/style/js/jquery-1.11.0.js" type="text/javascript"></script>
<link rel="stylesheet" href="{webroot}theme/default/style/css/font-awesome.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.carousel.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.theme.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap.3.2.0.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap-select.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-elements.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-animate.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-shop.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/settings.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/component.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bim.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/custom.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-responsive.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/datepicker3.css" />

<!--[if IE]>
        <link rel="stylesheet" href="{webroot}theme/default/style/css/ie.css">
    <![endif]-->
<!--[if lte IE 8]>
        <script src="{webroot}theme/default/style/js/respond.js"></script>
    <![endif]-->
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script src="{webroot}theme/default/js/jquery.slidy.min.js"></script>
<script src="{webroot}theme/default/js/home.js"></script>
</head>

<body>
<div class="body">
   {sdcms:include("sdcms_head.asp")}
   <div id="useragreement-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div id="privacy-policy-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div class="container">
    <div class="space10"></div>
    <ol class="product breadcrumb" itemscope itemtype="">
        <li itemprop="itemListElement" itemscope itemtype="">
            <a href="/" itemprop="item">
                <span itemprop="name">BIMobject</span>
            </a>
            <meta itemprop="position" content="1" />
        </li>
        <li itemprop="itemListElement" itemscope itemtype="">
            <a href="/brand.asp" itemprop="item">
                <span itemprop="name">品牌</span>
            </a>
            <meta itemprop="position" content="2" />
        </li>
        <li class="active">
            {rsshow[my_Brand]}
        </li>
    </ol>
    <div class="row">
        <div class="col-xs-12 col-sm-9">
            <h1 class="brand-header">
                {rsshow[my_Brand]}
            </h1>
            <div class="space10"></div>
                <p>
                    {rsshow[my_Brandintro]}
                </p>
            <hr />
            <a href="/list.asp?classid=1&brandid={id}" class="pull-right padding5">查看所有产品</a>
            <h2 class="brand-subheader">最新产品</h2>
            <div class="space20"></div>

            <!-- Latest products -->
            <div class="row">
              {sdcms:rs top="5" table="sd_content" where="classid=1 and userid=[id] and islock=1" order="createdate desc,id desc" pagesize="{var pagenum}"}
                        {rs:eof} {/rs:eof}
        <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
                        <div class="brand product-card">
                            <a href="{$rs[link]}">
                                <img src="{if $rs[ispic]=1}{$rs[pic]}{else}{webroot}theme/default/images/nophoto.jpg{/if}" alt="{sdcms.cutstr($rs[title],20,0)}" title="{sdcms.cutstr($rs[title],20,0)}" width="110" height="110" />
                                <h3 class="brand-product-title text-center">{sdcms.cutstr($rs[title],20,0)}</h3>
                            </a>
                            <div class="space10"></div>
                                                        <div class="space1"></div>
                        </div>
                    </div>
          {/sdcms:rs}
            
                    
                    
                    
            </div>

        </div>
        <div class="col-xs-12 col-sm-3">
            <div class="brand-info text-center">
                <img src="{rsshow[my_Brandlogo]}" alt="{rsshow[my_Brand]}" title="{rsshow[my_Brand]}" id="manufacturlogo" class="brandlogo" />
                <div class="space1"></div>

                
                <div class="space5"></div>
            </div>
            <div class="space20"></div>



                <!-- CONTACT BRAND -->
                <div class="contactbox">
                                    <div id="share-contact-modal" class="modal fade" tabindex="-1">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                                    <h4 class="modal-title">联系品牌</h4>
                                                </div>
                                                <div class="modal-body text-center">
<form  class="contactform" method="post">
<input type="hidden" name="userid" value="{id}">
<textarea class="form-control addmessage" cols="20" id="Content" name="Content" rows="4">
</textarea>
<div class="space10"></div>
<input id="postform" class="btn btn-primary" type="submit" name="postform" value="提交">
 </form>
</div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                  
                                  
                                    <a  class="btn btn-default btn-sm btn-block" data-toggle="modal" data-target="#share-contact-modal" data-backdrop="static"><i class="icon icon-envelope-o"></i> <span>联系品牌</span></a>
                                  
                                </div>
                <div class="space10"></div>
                        <!-- END CONTACT BRAND -->

                <a href="{if instr(rsshow[my_Brandurl],"http://")}{rsshow[my_Brandurl]}{else}http://{rsshow[my_Brandurl]}{/if}" target="_blank" class="btn btn-default btn-sm btn-block" target="_blank"> <i class="icon icon-external-link"></i> 访问</a>
        </div>
    </div>
</div>
   {sdcms:include("sdcms_foot.asp")}
</div>

<script>
	$(".contactform").validator(
		{
			stopOnError:true,
			theme:'yellow_right',
			ignore:':hidden',
			beforeSubmit:function(){$("input[type='submit']").attr("disabled",true);},
			valid:function(form)
			{
				$.fn.tips({type:'loading',content:'数据提交中'});
				$.ajax(
				{
					url:"message.asp?act=contact",
					type:"post",
					data:$(form).serialize(),
					success:function(data){
						data=jQuery.parseJSON(data);
						var type="warn";
						if(data.status=="y"){type="ok";}
						$.fn.tips({type:type,content:data.info});
						
					}
				});
			},
			invalid:function(){$("input[type='submit']").attr("disabled",false);}
		}
	);
	</script>
<script src="{webroot}theme/default/style/js/jqueryappear.js"></script> 

<!-- Libs --> 
<script src="{webroot}theme/default/style/js/plugins.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.easing.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.cookie.js"></script> 
<script src="{webroot}theme/default/style/js/bootstrap.min.3.2.0.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.defaults.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.tools.min.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.revolution.js"></script> 
<script src="{webroot}theme/default/style/js/owl.carousel.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.flipshow.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.stellar.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.validate.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.isotope.js"></script> 
<script src="{webroot}theme/default/style/js/view.home.js"></script> 
<script src="{webroot}theme/default/style/js/theme.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/site.dialogues.js"></script>
</body>
</html>